<div style="clear: both;">
    <?php echo CHtml::beginForm('', 'post', array('class' => 'dot_form fw_60', 'enctype'=>'multipart/form-data')); ?>
    <fieldset>
        <legend><?php echo Yii::t('common', 'please_fill_table_contents'); ?></legend>
        <dl>
            <dt><?php echo CHtml::activeLabelEx($picture, 'name'); ?></dt>
            <dd>
                <div>
                <?php
                    echo CHtml::activeTextField($picture, 'name', array(
                        'maxlength' => 200,
                        'class' => 'large',
                    ));
                ?>
                <?php
                    echo CHtml::activeLabelEx($picture, 'order_pos');
                    echo CHtml::activeTextField($picture, 'order_pos', array('class' => 'small'));
                ?>
                </div>
                <div>
                    <?php
                    echo CHtml::error($picture, 'name') . CHtml::error($picture, 'order_pos');
                    ?>
                </div>
            </dd>

            <dt><?php echo CHtml::activeLabelEx($picture, 'picture_saved_path'); ?></dt>
            <dd>
                <div>
                <?php
                    echo CHtml::activeFileField($picture, 'picture_saved_path', array(
                        'maxlength' => 200,
                        'class' => 'large',
                    ));
                ?>
                </div>
                <div><?php echo CHtml::error($picture, 'picture_saved_path'); ?></div>
            </dd>
            
            <dt><?php echo CHtml::activeLabelEx($picture, 'summary'); ?></dt>
            <dd>
                <div align="center">
                <?php
                    echo CHtml::activeTextArea($picture, 'summary', array(
                        'style' => "width: 96%; height: 120px;",
                    ));
                ?>
                </div>
                <div><?php echo CHtml::error($picture, 'summary'); ?></div>
            </dd>

            <dt></dt>
            <dd>
                <?php
                echo CHtml::submitButton($picture->isNewRecord
                    ? Yii::t('common', 'save') : Yii::t('common', 'update'), array(
                    'class' => 'btn'
                ));
                ?>
            </dd>
        </dl>
    </fieldset>
    <?php echo CHtml::endForm(); ?>
</div>